examples to find order of elements